from django import forms
from django.forms import FileField

from Lesson.models import FileInfo


# class FileForm(forms.Form):
#     file = FileField(max_length=100, label="文件")


class UserForm(forms.Form):
    username = forms.CharField(max_length=50)
    password = forms.CharField(max_length=50)

class FileForm(forms.ModelForm):
    class Meta:
        fields = ['title', 'file']
        model = FileInfo
